package com.hdsx.restful.base;

import java.io.Serializable;

import com.esri.arcgis.geometry.IGeometry;
import com.hdsx.ao.util.GemotryUtil;
/**
 * The Class HDLine.
 *
 * @author jingzh.
 * @description 
 */
public abstract class  HDLine implements Serializable {

	/**
	 * 路线基类
	 */
	private static final long serialVersionUID = 1L;

	/** 路线代码. */
	private String lxdm;
	/** 路线名称. */
	private String lxmc;
	/** 起点名称. */
	private String qdmc;
	/** 止点名称. */
	private String zdmc;
	/** 起点桩号. */
	private double qdzh;
	/** 止点桩号. */
	private double zdzh;
	/** 路线类型.上行、下行、双向 */
	private String lxlx;
	/** 里程. */
	private double lc;
	/** 行政区划编码*/
	private String xzqhbm;
	/** 空间shape. */
	private transient IGeometry shape;
	
	private String lineString;
	
	public String getLxdm() {
		return lxdm;
	}
	public void setLxdm(String lxdm) {
		this.lxdm = lxdm;
	}
	public String getLxmc() {
		return lxmc;
	}
	public void setLxmc(String lxmc) {
		this.lxmc = lxmc;
	}
	public String getQdmc() {
		return qdmc;
	}
	public void setQdmc(String qdmc) {
		this.qdmc = qdmc;
	}
	public String getZdmc() {
		return zdmc;
	}
	public void setZdmc(String zdmc) {
		this.zdmc = zdmc;
	}
	public double getQdzh() {
		return qdzh;
	}
	public void setQdzh(double qdzh) {
		this.qdzh = qdzh;
	}
	public double getZdzh() {
		return zdzh;
	}
	public void setZdzh(double zdzh) {
		this.zdzh = zdzh;
	}
	public String getLxlx() {
		return lxlx;
	}
	public void setLxlx(String lxlx) {
		this.lxlx = lxlx;
	}
	public double getLc() {
		return lc;
	}
	public void setLc(double lc) {
		this.lc = lc;
	}
	public IGeometry getShape() {
		return shape;
	}
	public void setShape(IGeometry shape) {
		if(shape!=null){
			setLineString(GemotryUtil.generateLineString(shape));
		}
	}
	public String getLineString() {
		return lineString;
	}
	public void setLineString(String lineString) {
		this.lineString = lineString;
	}
	
	public String getXzqhbm() {
		return xzqhbm;
	}
	public void setXzqhbm(String xzqhbm) {
		this.xzqhbm = xzqhbm;
	}
	@Override
	public String toString() {
		return "HDLine [lxdm=" + lxdm + ", lxmc=" + lxmc + ", qdmc=" + qdmc
				+ ", zdmc=" + zdmc + ", qdzh=" + qdzh + ", zdzh=" + zdzh
				+ ", lxlx=" + lxlx + ", lc=" + lc + ", xzqhbm=" + xzqhbm
				+ ", lineString=" + lineString + "]";
	}
}
